package com.hades.example.java.refactoring.before.c11.c11_3_pull_up_constructor_body;

public class Manager extends Employee {
    protected int _grade;

    public Manager(String name, String id, int grade) {
        _name = name;
        _id = id;
        _grade = grade;

        if (isPriviliged()) {
            assignCar();
        }
    }

    protected boolean isPriviliged() {
        return _grade > 4;
    }

    public int getGrade() {
        return _grade;
    }
}
